package com.example.spingbootvue.service;

import com.example.spingbootvue.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class deleteservice {
    @Autowired
    UserMapper userMapper;

    //这里从前端传入了一个值id,没有传入role,大可不必
    public int delete(Integer id){
        return userMapper.delete(id);
    }

    public int uplimit(Integer id){
        return userMapper.uplimit(id);
    }
}
